<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><{$site_title}>管理中心</title>
<{include file="js.html"}> <{include file="kindeditor.html"}>
<script type="text/javascript">
	$(function() {
		$("#myForm").submit(function() {
			return queding('是否保存？', ".subCheck");
		});
		/*$("#city").citySelect({
			prov : "",
			city : "",
			dist : "",
			required : false
		});*/
	})
	
 function check_box() { 
   var count=document.myform.check.length; 
    var j=0; 
    for(var i=0;i<count;i++) 
   { 
   if (document.myform.check[i].checked) 
    ++j; 
   } 
   if(j==0 || j>1) 
  {alert("状态栏中内容至少且必须选择一个！！"); 
  window.history.back(-1); 
 } 
  else 
  { return true;} 
  
  }
  
</script>
</head>

<body>
	<div class="box">
		<div style="background: url(images/mainbj.jpg) repeat-x; line-height: 31px; height: 31px;">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="41" align="center"><img src="images/biao1.jpg" /></td>
					<td><strong>当前位置</strong>：商品管理 &gt; 商品添加</td>
				</tr>
			</table>
		</div>
		<form action="" method="post" name="myform" id="myForm" enctype='multipart/form-data' onsubmit="return check_box();">
			<table class="lefttab" cellpadding="0" cellspacing="0">
				<tr>
					<td colspan="2">
						<div style="height: 26px; text-align: left; line-height: 26px; background: url(images/xbj1.jpg) repeat-x; border: 1px solid #e9f5fa; font-weight: bold;">&nbsp;&nbsp;商品添加</div>
					</td>
				</tr>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>商品名称</strong>：</td>
					<td width="873" align="left">&nbsp;<input type="text" class="subCheck" name="name" value="<{$row.name}>"/></td>
				</tr>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>商品价格</strong>：</td>
					<td width="873" align="left">&nbsp;<input type="text" class="subCheck" name="price" value="<{$row.price}>" /></td>
				</tr>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>时间期限</strong>：</td>
					<td width="873" align="left">&nbsp;<input type="text" class="subCheck" name="time_imit" value="<{$row.time_imit}>" /></td>
				</tr>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>商品图片0</strong>：</td>
					<td width="873" align="left">&nbsp;<input type="file" name="img_0" value="<{$row.img_0}>" datatype="*" nullmsg="请上传图片！"/></td>
				</tr>
				<{if $row.img_0!=""}>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>预览</strong>：</td>
					<td>
						<a target="_blank" href="../business/upload/product/<{$row.img_0}>"><img style="margin-left:-740px;" src="../business/upload/product/<{$row.img_0}>" width="110" height="60" /></a>
					</td>
				</tr>
				<{/if}>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>商品图片1</strong>：</td>
					<td width="873" align="left">&nbsp;<input type="file" name="img_1" value="<{$row.img_1}>" datatype="*" nullmsg="请上传图片！"/></td>
				</tr>
				<{if $row.img_1!=""}>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>预览</strong>：</td>
					<td>
						<a target="_blank" href="../business/upload/product/<{$row.img_1}>">
						<img style="margin-left:-740px;" src="../business/upload/product/<{$row.img_1}>" width="110" height="60" /></a>
					</td>
				</tr>
				<{/if}>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>商品图片2</strong>：</td>
					<td width="873" align="left">&nbsp;<input type="file" name="img_2" value="<{$row.img_3}>" datatype="*" nullmsg="请上传图片！"/></td>
				</tr>
				<{if $row.img_2!=""}>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>预览</strong>：</td>
					<td>
						<a target="_blank" href="../business/upload/product/<{$row.img_2}>">
						<img style="margin-left:-740px;" src="../business/upload/product/<{$row.img_2}>" width="110" height="60" /></a>
					</td>
				</tr>
				<{/if}>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>商品描述</strong>：</td>
					<td width="873" align="left">
						<textarea  name="detail_description" style="width: 700px; height:200px;"><{$row.detail_description}></textarea>
					</td>
				</tr>
					<td height="50px" colspan="2">
						<p>&nbsp;</p>
						<p align="left" style="margin-left: 100px;">&nbsp;&nbsp;<input type="submit" name="submit" value="发布" class="inp" /></p>
						<p>&nbsp;</p>
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>